package app.web.qk.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.gitee.feizns.quickstart.domain.vo.Ret;
import com.gitee.feizns.quickstart.web.Interceptors.bucket4j.RateLimit;
import com.gitee.feizns.quickstart.web.Interceptors.bucket4j.handler.NoRepeat;
import com.gitee.feizns.quickstart.web.WebUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author feizns
 * @since 2025/10/28
 */
@RestController
@RequestMapping
public class TestController {


    @SaIgnore
    @GetMapping("/test")
    @RateLimit(NoRepeat.class)
    public Object test() {
        return Ret.ok(WebUtils.getRequestURI());
    }

}
